module.exports = {
  extends: [
    'stylelint-config-standard',
    'stylelint-config-rational-order',
    'stylelint-config-prettier',
    'stylelint-config-standard-scss',
    'stylelint-config-prettier-scss',
    'stylelint-config-recommended-vue'
  ],
  plugins: ['stylelint-order', 'stylelint-scss', 'stylelint-less'],
  rules: {
    indentation: 2,
    'annotation-no-unknown': true,
    'order/order': [
      'dollar-variables',
      'custom-properties',
      'declarations',
      'at-variables',
      'rules'
    ],
    'at-rule-no-unknown': null,
    'scss/at-rule-no-unknown': true,
    'selector-pseudo-class-no-unknown': [
      true,
      {
        ignorePseudoClasses: ['deep', 'slotted', 'global', 'input-placeholder']
      }
    ],
    'string-quotes': 'single',
    'function-no-unknown': null,
    'length-zero-no-unit': null,
    'no-descending-specificity': null,
    'rule-empty-line-before': ['always', { except: 'first-nested' }],
    'block-closing-brace-empty-line-before': 'never',
    'block-opening-brace-newline-after': 'always-multi-line',
    'alpha-value-notation': 'number',
    'selector-class-pattern': null,
    'declaration-block-no-redundant-longhand-properties': null,
    'color-function-notation': null,
    'custom-property-no-missing-var-function': null,
    'scss/at-import-partial-extension': null,
    'scss/at-import-no-partial-leading-underscore': null,
    'scss/at-if-no-null': null,
    'keyframes-name-pattern': null,
    'scss/at-mixin-pattern': null,
    'scss/no-global-function-names': null,
    'no-duplicate-selectors': null,
    'number-max-precision': null,
    'selector-pseudo-element-no-unknown': [
      true,
      { ignorePseudoElements: ['input-placeholder'] }
    ],
    'property-no-unknown': [true, { ignoreProperties: ['box-orient'] }]
  }
}
